{% extends "base.html" %}

{% block title %}{{ username }}'s bookmarks{% endblock title %}

{% block head_title %}{% if request.user.is_authenticated %}Your {% else %}{{ username }}'s {% endif %}bookmarks{% endblock head_title%}
{% block head_includes %}
  <link rel="shortcut icon" href="/favicon.ico"/>
  <link rel="alternate" href="{{ list_url }}rss/" type="application/rss+xml" title="{{ username }}'s RSS Feed"/>
  <meta name="description" content="{{ username }}'s bookmarks" />
  <meta name="keywords" content="bookmarks, social bookmarks, django"/> 
  <meta name="author" content="{{ username }}"/> 
  <link rel="stylesheet" type="text/css" href="/media/css/paginator.css" media="screen"/>
{% endblock head_includes %}

{% block subnav_description %}
  {% include "bookmarks/subnav_desc.html" %}
{% endblock subnav_description %}

{% block sidebar %}
  {% include "bookmarks/sidebar.html" %}
{% endblock sidebar %}

{% block content %}
  {% load tagging_tags %}
  {% spaceless %}
  <div class="bookmarks">
    <ul>
    {% for bookmark in bookmarks %}
      {% tags_for_object bookmark as post_tags %}
      <li>
        <a href="{{ bookmark.url }}" title="Tags: {% for tag in post_tags %}{% if not forloop.first %}, {% endif %}{{ tag }}{% endfor %}" target="_new">{{ bookmark.title }}</a> 
      </li>
    {% endfor %}
    </ul>
  </div>
  {% load paginator %}
  {% if is_paginated %}<div class="paginator">{% paginator 5 %}</div>{% endif %}
  {% endspaceless %}
{% endblock content %}

